/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package ticketmaster.dataobject;

import ticketmaster.common.SeatCategories;

/**
 *
 * @author Xiaolong Xue
 */
public class TicketRate
{
    private int eventID;
    private int venueID;
    private int seatCategoryID;
    private double price;

    public TicketRate()
    {

    }
    
    public TicketRate(int eventID, int venueID, int seatCategoryID, double price)
    {
        this.eventID = eventID;
        this.venueID = venueID;
        this.seatCategoryID = seatCategoryID;
        this.price = price;
    }

    /**
     * @return eventID
     */
    public int getEventID()
    {
        return eventID;
    }

    /**
     * @param eventID the eventID to set
     */
    public void setEventID(int eventID)
    {
        this.eventID = eventID;
    }

    /**
     * @return venueID
     */
    public int getVenueID()
    {
        return venueID;
    }

    /**
     * @param venueID the venueID to set
     */
    public void setVenueID(int venueID)
    {
        this.venueID = venueID;
    }

    /**
     * @return seatCategoryID
     */
    public int getSeatCategoryID()
    {
        return seatCategoryID;
    }

    /**
     * @param seatCategoryID the seatCategoryID ot set
     */
    public void setSeatCategoryID(int seatCategoryID)
    {
        this.seatCategoryID = seatCategoryID;
    }

    /**
     * @return price
     */
    public double getPrice()
    {
        return price;
    }

    /**
     * @param price the price to set
     */
    public void setPrice(double price)
    {
        this.price = price;
    }

    public String toString()
    {
        return SeatCategories.getSeatCategory(seatCategoryID);
    }
}
